<?php
require_once("db.php");
require_once "HTML/Form.php";
require_once 'HTML/Menu.php';
$dsn="mysql://root:jan123@localhost/kbbsurvey";
$db =& DB::connect($dsn);
if (PEAR::isError($db)) {
    die($db->getMessage());
}
//if(isset($_POST["name"])) die($_POST["name"]);

$form = new HTML_Form('index.php','post');

$form->addText("name", "What's your name?");
$form->addText("email", "What's your email address?");
$form->addPassword("password", "Please enter the desired password");
$form->addPlaintext("Tip", "Your password should be hard to guess");
$form->addSubmit("submit", "Submit");

$form->display();





?>